﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ScanConfirmForm
{
    public partial class FrmExit : Form
    {
        public FrmExit()
        {
            InitializeComponent();
            txtPassword.Focus();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnConfirm_Click(object sender, EventArgs e)
        {
            if(txtPassword.Text.Trim() == "1234")
            {
                Application.Exit();
            }
            else
            {
                MessageBox.Show("请输入正确密码！");
            }
        }
    }
}
